package com.yuanhua.sim.client.socket.handler;

import com.yuanhua.core.base.entity.MsgResBean;
import com.yuanhua.sim.client.utils.FlagUtils;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;
import io.netty.channel.SimpleChannelInboundHandler;

import javax.validation.constraints.Pattern;

/**
 * * @description TODO
 * * @author songguoxiang@yunquna.com
 * * @date 2024/03/29 16:34
 */
public class OtherEventHandler extends ChannelInboundHandlerAdapter {


    @Override
    public void channelInactive(ChannelHandlerContext ctx) throws Exception {
        System.out.println("Server has closed the connection or the connection was lost.");
        // 更新标志位
        FlagUtils.shouldContinueReadingInput = false;
        super.channelInactive(ctx);
    }


}
